﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DropDownExt.aspx.cs" Inherits="AjaxToolkitDemo.DropDownExt" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
        <asp:TextBox ID="TextBox1" runat="server" Text="Hello"></asp:TextBox>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <cc1:DropDownExtender ID="DropDownExtender1" runat="server" DropDownControlID="Panel1"
                    TargetControlID="Image1" >
                </cc1:DropDownExtender>
                <asp:Image runat="server" ID="Image1" Width="200" Height="150"></asp:Image>
                <asp:Panel runat="server" ID="Panel1">
                    <asp:LinkButton runat="server" OnClick="option_Click"> 
                     <asp:Image runat="server" Width="200" Height="150"     ImageUrl="Images/001.jpg">
                </asp:Image>
                 </asp:LinkButton>
                    <asp:LinkButton runat="server" OnClick="option_Click">
                        <asp:Image ID="Image2" runat="server" Width="200" Height="150" ImageUrl="Images/002.jpg">
                        </asp:Image>
                    </asp:LinkButton>
                    <asp:LinkButton runat="server" OnClick="option_Click">
                        <asp:Image ID="Image3" runat="server" Width="200" Height="150" ImageUrl="Images/003.jpg">
                        </asp:Image>
                    </asp:LinkButton>
                    <asp:LinkButton runat="server" OnClick="option_Click">
                        <asp:Image ID="Image4" runat="server" Width="200" Height="150" ImageUrl="Images/004.jpg">
                        </asp:Image>
                    </asp:LinkButton>
                    <asp:LinkButton runat="server" OnClick="option_Click">
                        <asp:Image ID="Image5" runat="server" Width="200" Height="150" ImageUrl="Images/005.jpg">
                        </asp:Image>
                    </asp:LinkButton>
                    <asp:LinkButton runat="server" OnClick="option_Click">
                        <asp:Image ID="Image6" runat="server" Width="200" Height="150" ImageUrl="Images/006.jpg">
                        </asp:Image>
                    </asp:LinkButton>
                    <br />
                  <%--  <asp:LinkButton ID="LinkButton1" runat="server" OnClick="option_Click">001</asp:LinkButton>
                    <asp:LinkButton ID="LinkButton2" runat="server" OnClick="option_Click">002</asp:LinkButton>
                    <asp:LinkButton ID="LinkButton3" runat="server" OnClick="option_Click">003</asp:LinkButton>
                    <asp:LinkButton ID="LinkButton4" runat="server" OnClick="option_Click">004</asp:LinkButton>
                    <asp:LinkButton ID="LinkButton5" runat="server" OnClick="option_Click">005</asp:LinkButton>
                    <asp:LinkButton ID="LinkButton6" runat="server" OnClick="option_Click">006</asp:LinkButton>
              --%>  </asp:Panel>
            </ContentTemplate>
        </asp:UpdatePanel>
        <br />
        
        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
            <ContentTemplate>
                <cc1:DropDownExtender ID="DropDownExtender2" runat="server" DropDownControlID="Panel2"
                    TargetControlID="TextBox2" >
                </cc1:DropDownExtender>
                <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                
                <asp:Panel ID="Panel2" runat="server">
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="true"
                     AutoGenerateSelectButton="true" DataKeyNames="ID" PageSize="5" AllowPaging="true">
                    </asp:GridView>
                
                </asp:Panel>
                </ContentTemplate>
                </asp:UpdatePanel>
    </div>
    </form>
</body>
</html>
